QT -= gui
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat

TARGET = log

TEMPLATE = lib

DEFINES += LOG_LIBRARY

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += \
    log.cpp \
    logger.cpp \
    loggerprivate.cpp \
    loginfo.cpp \
    loginstance.cpp \
    logmanager.cpp \
    qslog/QsLogDest.cpp \
    qslog/QsLogDestConsole.cpp \
    qslog/QsLogDestFile.cpp \
    qslog/QsLogDestFunctor.cpp

HEADERS += \
    log_global.h \
    log.h \
    logger.h \
    loggerprivate.h \
    loginfo.h \
    loginstance.h \
    logmanager.h \
    qslog/QsLogDest.h \
    qslog/QsLogDestConsole.h \
    qslog/QsLogDestFile.h \
    qslog/QsLogDestFunctor.h \
    qslog/QsLogLevel.h

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target


QMAKE_CXXFLAGS += -Wno-strict-aliasing -Wno-unused-variable
